/*
 * This file (RxClampSaturation.java) is protected by the GNU GPL licence (v2). 
 * Please read the license.txt attached for further informations. 
 * 
 */

package alkwarel.filters;

import alkwarel.objects.RxSimpleFilter;

/**
 * @author Xavier Gouchet
 *
 */
public class RxClampSaturation extends RxSimpleFilter {

	/**
	 * Standard constructor
	 */
	public RxClampSaturation() {
		super(1022, "ClampSaturation");
	}

	/**
	 * @see alkwarel.objects.RxSimpleFilter#FilterPixel()
	 */
	protected void FilterPixel() {
		this.S(Math.min(Math.max(this.ssat, 700), 800));
	}

}
